package shiyantian;

public class IntegerAndString {

	public static void main(String[] args) {
		int i = 3;
		Integer in = new Integer(i);
		
		int j = in.intValue();
		System.out.println("j="+j);
		String str = in.toString();
		System.out.println("str="+str);
		
		String str1 = "123456";
		Integer a = Integer.valueOf(str1);
		//int a = Integer.valueOf(str1);
		System.out.println(a);
		int b = Integer.parseInt(str1);
		System.out.println(b);
		
		String str2 = Integer.toString(a+3);
		System.out.println(str2);
	}
}

/*
class SubStu extends Student {

	public SubStu(String name, int num) {
		super(name, num);
		// TODO Auto-generated constructor stub
	}
}
*/